package com.ailesson.order.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import com.ailesson.common.base.BaseEntity;

/**
 * 订单明细 订单明细
 * 
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-12 21:32:50
 */
@Data
@TableName("ail_order_detail")
public class OrderDetEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
    @TableId
    private Long id;
	/**
	 * 课程id
	 */
    private Long courseId;
	/**
	 * 课程名称
	 */
    private String courseName;
	/**
	 * 课程封面
	 */
    private String cover;
	/**
	 * 订单编号
	 */
    private Long orderId;
	/**
	 * 用户id
	 */
    private Long userId;
	/**
	 * 原始金额
	 */
    private BigDecimal originAmount;
	/**
	 * 优惠劵减免金额
	 */
    private BigDecimal couponReduce;
	/**
	 * 最终金额
	 */
    private BigDecimal finalAmount;
	/**
	 * 会话id 当前会话id 继承购物车中会话id
	 */
    private String sessionId;

}
